	
	<!-- Login	-->
	<div class="grid_4" style=" text-align: right;" id="loginbar">
	
	<?php
	if(
		((isset($user->ACL)) && ($user->ACL->hasPermission('access_site') != true)) ^
		(!(isset($user->ACL)))
		) {		
	?> 
		
		<form action="login.php" method="POST">
		<a href="register.php" title="Registrieren">Reg.</a>
		<input type="text" value="User" name="username" size="10"/>
		<input type="password" value="******" name="pwd" size="10"/>
		<input type="submit" name="Senden" value="Einloggen"/>
		
		</form>
	<?php
	} else {
		echo "<a href=\"" . $css  . "user.php\">" . $user->getUserNameFromId($user->userID) . "</a>";
		
	?>	
	
		<a href="<?php echo $css ?>login.php?status=logout" title="Auswechseln lassen"><small>Ausloggen</small></a>
	<?php
	}
	?>
	</div>
	<div class="clear"></div>
	<!-- Login	-->
	